﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MemoLib.Operations;

namespace MemoLib.Tasks
{
    /// <summary>
    /// 工卡，用来记录任务的类型，信息，所有的任务都是工卡的一个实例，这个实例是业务层面，不是代码层面
    /// </summary>
    public class TaskCard
    {
        public List<Operation> Operations = new List<Operation>();

        private Int64 cardID;

        public Int64 CardID
        {
            get { return cardID; }
            set { cardID = value; }
        }

        private string executeType = string.Empty;

        public string ExecuteType
        {
            get { return executeType; }
            set { executeType = value; }
        }

        private string context = string.Empty;
        
        public string Context
        {
            get { return context; }
            set { context = value; }
        }

        private DateTime executeDateTime;
        /// <summary>
        /// 执行时间
        /// </summary>
        public DateTime ExecuteDateTime
        {
            get { return executeDateTime; }
            set { executeDateTime = value; }
        }
        private string note = string.Empty;
        /// <summary>
        /// 备注
        /// </summary>
        public string Note
        {
            get { return note; }
            set { note = value; }
        }

        private DateTime? lastExecuteDateTime;
        /// <summary>
        /// 上次执行时间，用来获取今天工作任务
        /// </summary>
        public DateTime? LastExecuteDateTime
        {
            get { return lastExecuteDateTime; }
            set { lastExecuteDateTime = value; }
        }
    }
}
